package cn.yanghan.org.controller;


import cn.yanghan.org.domain.Department;
import cn.yanghan.org.domain.Employee;
import cn.yanghan.org.query.DepartmentQuery;
import cn.yanghan.org.service.IDepartmentService;
import cn.yanghan.org.service.IEmployeeService;
import cn.yanghan.org.utils.AjaxResult;
import cn.yanghan.org.utils.QueryResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/employee")
@Api(tags = "员工维护接口")
public class EmployeeController {

    @Autowired
    private IEmployeeService employeeService;

    @GetMapping
    public List<Employee> loadAll(){
        return employeeService.loadAll();
    }
}
